package com.aaa.vegetablemarketexpress.service;

import com.aaa.vegetablemarketexpress.entity.Brand;
import com.aaa.vegetablemarketexpress.entity.Spec;
import com.aaa.vegetablemarketexpress.util.Page;
import com.github.pagehelper.PageInfo;

/**
 * @FileName: SpecService
 * @Description:
 * @Author: 张钰哲
 * @CreateTime: 2025/9/6 14:43
 * @Version: 1.0.0
 */

public interface SpecService {
    /**
     * 分页查询
     * @param page
     * @return
     */
    PageInfo<Spec> queryByPage(Page<Spec> page);

    /**
     * 根据id查询
     * @param specId
     * @return
     */
    Spec queryBySpecId(Long specId);

    /**
     * 添加
     * @param spec
     * @return
     */
    int add(Spec spec);

    /**
     * 修改
     * @param spec
     * @return
     */
    int update(Spec spec);

    /**
     * 删除
     * @param specId
     * @return
     */
    int deleteBySpecId(Long specId);
}
